package com.lz.gmall.product;

import com.lz.gmall.anno.*;
import com.lz.gmall.cache.anno.EnableRedissonClient;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author 郭运龙
 */
@SpringBootApplication
//@EnableDiscoveryClient 可以省略
//@ComponentScan("com.lz.gmall")
@MapperScan("com.lz.gmall.product.mapper")
//@EnableGlobalExceptionHandler
//@EnableSwagger2Config
//@EnableGmallMybatisPlusInterceptor
@EnableFileUpload //自定义注解，注入文件上传
@EnableGmallTransactionManager //自定义注解，注入事务管理器
@EnableRedissonClient //自定义注解，注入缓存一系列对象，开启读缓存
@EnableFeignClients(basePackages = "com.lz.gamll.feign.search")
@EnableThreadPoolConfig //自定义注解，使用自定义的线程池
public class ProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class,args);
    }

}
